package top.deepdesigner.service;

import top.deepdesigner.pojo.DtsGoods;
import top.deepdesigner.vo.GoodsAllinone;
import top.deepdesigner.vo.StatGoodVO;

import java.util.List;

/**
 * Start up <br/>
 * Created with IntelliJ IDEA. <br/>
 * Project Name: shop_manage <br/>
 * Author: duanruiqing <br/>
 * DateTime: 2022/9/20 星期二 19:49:51 <br/>
 */
public interface DtsGoodsService {
  Long getGoodsCount();

  DtsGoods getGoodsByGoodId(Long goodsId);

  List<StatGoodVO> getGoodsByDate(int days);

  List<DtsGoods> getGoodsList(Integer page, Integer limit, String sort, String order, Integer goodsSn, String name);

  List<Integer> getGoodsCategoryByGoodId(Long id);

  void updateGoods(GoodsAllinone<Integer> goods);

  void deleteGoods(Integer goodsId);

  Boolean createGoods(GoodsAllinone<Integer> goodsAllinone);
}
